package responsibility.practice_02;

/**
 * @author yi qiang
 * @date 2021/6/21 22:07
 */
public abstract class Approver {
    /**
     *  下一个处理者
     */
    Approver approver;

    /**
     *  名称
     */
    String name;


    protected Approver(String name) {
        this.name = name;
    }

    public void setApprover(Approver approver) {
        this.approver = approver;
    }

    /**
     * 请求处理：子类实现
     * @param purchaseRequest 请求
     */
    public abstract void processRequest(PurchaseRequest purchaseRequest);

}
